﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kevin.Framework.Core;
using Kevin.Framework.Data.OrmMapping;
namespace Kevin.WindosControls.Test
{
    public class Person:EntityBase
    {
        [Kevin.Framework.Validation.NotNullValidator(MessageTemplate="姓名不能为空！")]
        public string Name
        {
            get;
            set;
        }
        [Kevin.Framework.Validation.NotNullValidator(MessageTemplate = "年龄不能为空！")]
        public int Age
        {
            get;
            set;
        }

        public string Value
        {
            get;
            set;
        }

        public SexEnum Sex
        {
            get;
            set;
        }

    }

    public enum SexEnum
    {
        [EnumDesc("女")]
        Girl=0,
        [EnumDesc("男")]
        Boy =1
    }
}
